package com.xiaoyu.shenyou.shenyouv1.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
public class AutoConfigEntity {
    private int id;

    private double size;

    private int is_skip_betting;

    private int skip_betting;

    private int multiple;

    private int user_id;

    private double profit;

    private double lose;

    private int wincount_stop;

    private int continue_fail;

    private int continue_fail_skip;

    private int multiple_reset;

    private String prediction_name;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime create_time;
}
